import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { hashHistory } from 'react-router';
import configureStore from './store/configureStore.js';
import createRoutes from './router';

const store = configureStore();

ReactDOM.render(
  <Provider store={store}>
  { createRoutes(hashHistory) }
  </Provider>,
    document.getElementById('app')
);

